package com.mc.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mc.system.mapper.SysAppRoleMapper;
import com.mc.system.domain.SysAppRole;
import com.mc.system.service.ISysAppRoleService;

/**
 * 移动端权限 Service业务层处理
 *
 * @author mc
 * @date 2021-03-08
 */
@Service
public class SysAppRoleServiceImpl implements ISysAppRoleService
{
    @Autowired
    private SysAppRoleMapper sysAppRoleMapper;

    /**
     * 查询移动端权限
     *
     * @param id 移动端权限 ID
     * @return 移动端权限
     */
    @Override
    public SysAppRole selectSysAppRoleById(Long id)
    {
        return sysAppRoleMapper.selectSysAppRoleById(id);
    }

    /**
     * 查询移动端权限 列表
     *
     * @param sysAppRole 移动端权限
     * @return 移动端权限
     */
    @Override
    public List<SysAppRole> selectSysAppRoleList(SysAppRole sysAppRole)
    {
        return sysAppRoleMapper.selectSysAppRoleList(sysAppRole);
    }

    /**
     * 新增移动端权限
     *
     * @param sysAppRole 移动端权限
     * @return 结果
     */
    @Override
    public int insertSysAppRole(SysAppRole sysAppRole)
    {
        return sysAppRoleMapper.insertSysAppRole(sysAppRole);
    }

    /**
     * 修改移动端权限
     *
     * @param sysAppRole 移动端权限
     * @return 结果
     */
    @Override
    public int updateSysAppRole(SysAppRole sysAppRole)
    {
        return sysAppRoleMapper.updateSysAppRole(sysAppRole);
    }

    /**
     * 批量删除移动端权限
     *
     * @param ids 需要删除的移动端权限 ID
     * @return 结果
     */
    @Override
    public int deleteSysAppRoleByIds(Long[] ids)
    {
        return sysAppRoleMapper.deleteSysAppRoleByIds(ids);
    }

    /**
     * 删除移动端权限 信息
     *
     * @param id 移动端权限 ID
     * @return 结果
     */
    @Override
    public int deleteSysAppRoleById(Long id)
    {
        return sysAppRoleMapper.deleteSysAppRoleById(id);
    }
}
